<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<div class="panel-body">
    <div class="btn-group pull-right">
        <button type="button" class="btn btn-success" onclick="loadCapacityFormDiv()">添加</button>
    </div>
    <div>
        <table id="contentTable" class="table table-bordered mg-t datatable">
            <thead>
                <tr>
                    <th>用血安排</th>
                    <th>预定输血时间</th>
                    <th>血量</th>
                    <th>血液单位</th>
                    <th>血液要求</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <c:forEach items="${list}" var="bloodCapacity">
                <tr>
                    <td> ${fns:getDictLabel(bloodCapacity.fastSlow,'FAST_SLOW' ,'' )}</td>
                    <td> <fmt:formatDate value="${bloodCapacity.transDate}" pattern="yyyy-MM-dd HH:mm:ss"/> </td>
                    <td> ${bloodCapacity.transCapacity}</td>
                    <td> ${fns:getDictLabel(bloodCapacity.unit,'BLOOD_UNIT_DICT' ,'' )}</td>
                    <td> ${bloodCapacity.bloodComponent.bloodName}</td>
                    <td>
                        <c:choose>
                            <c:when test="${bloodCapacity.bloodApply.applyStatus eq '0'}">
                                <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该申请用血量表吗？',function(){delLoad('capacityListDiv','${ctx}/blood/bloodCapacity/delete?id=${bloodCapacity.id}','${ctx}/sys/bloodCapacity/list?applyId=${bloodCapacity.applyId}')})">删除</a>
                            </c:when>
                            <c:otherwise>无</c:otherwise>
                        </c:choose>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>
</div>